#include "testsignal.h"

#include <iostream>

testsignal::testsignal(QWidget *parent)
    : QMainWindow(parent)
{
    ui.setupUi(this);
	connect(ui.pushButton_test, SIGNAL(clicked()), this, SIGNAL(viewSig()));
	connect(this, SIGNAL(viewSig()), this, SLOT(viewSlot()));
}

void testsignal::viewSlot()
{
	std::cout << "test slot" << std::endl;
}
